class BlockFactory { 
  Block createBlock(int type) {
    Block b = null;
    switch (type) {
    case 0:
      b = new BlockX();
    }
    return b;
  }
}
